Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Opera Ready for MV3 #13190

Merged
merged 8 commits into from
Feb 11, 2025
Merged

Get Opera Ready for MV3 #13190

merged 8 commits into from
Feb 11, 2025

Conversation

justindbaur
Copy link
Member

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-17198

📔 Objective

This gets Opera ready for MV3, it adds opera entries into the manifest.v3.json file so that the sidebar is available. Currently the ability to set the sidebar icon is broken so we are skipping that for now. The badge number is still working fine though. We just won't get the gray icon or the blue plus locked icon. Those icons still work fine for the popup action though.

📸 Screenshots

Logged out:
Screenshot 2025-01-31 at 2 59 30 PM

Unlocked with ciphers for page:
Screenshot 2025-01-31 at 3 00 01 PM

Locked:
Screenshot 2025-01-31 at 3 00 13 PM

Unlocked with no ciphers for page:
Screenshot 2025-01-31 at 3 00 41 PM

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@justindbaur justindbaur requested a review from a team as a code owner January 31, 2025 20:02
@justindbaur justindbaur marked this pull request as draft January 31, 2025 20:02
Copy link
Contributor

github-actions bot commented Jan 31, 2025

Logo
Checkmarx One – Scan Summary & Detailsbebc2165-6fd4-4b61-9e01-3f13810e791f

New Issues (1)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Angular_Improper_Type_Pipe_Usage /apps/web/src/app/tools/send/send-access/access.component.html: 38
detailsThe value used in expirationDate at /apps/web/src/app/tools/send/send-access/access.component.html in line 38 may throw an exception with the pipe ...
Attack Vector

Copy link

codecov bot commented Jan 31, 2025

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 35.28%. Comparing base (9f22a2f) to head (e1689da).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
apps/browser/src/platform/browser/browser-api.ts 0.00% 5 Missing ⚠️
...pps/browser/src/platform/listeners/update-badge.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13190      +/-   ##
==========================================
- Coverage   35.28%   35.28%   -0.01%     
==========================================
  Files        3124     3124              
  Lines       92358    92349       -9     
  Branches    16794    16793       -1     
==========================================
- Hits        32590    32586       -4     
+ Misses      57311    57306       -5     
  Partials     2457     2457              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justindbaur justindbaur marked this pull request as ready for review February 3, 2025 14:07
@@ -165,6 +165,13 @@ export class UpdateBadge {
return;
}

if ("opr" in this.win && BrowserApi.isManifestVersion(3)) {
// setIcon API is currenly broken for Opera MV3 extensions
// https://forums.opera.com/topic/75680/opr-sidebaraction-seticon-api-is-broken-access-to-extension-api-denied?_=1738349261570
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +131 to +137
"__opera___execute_sidebar_action": {
"suggested_key": {
"default": "Alt+Shift+Y",
"linux": "Alt+Shift+U"
},
"description": "__MSG_commandOpenSidebar__"
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy from MV2 manifest:

"__opera___execute_sidebar_action": {
"suggested_key": {
"default": "Alt+Shift+Y",
"linux": "Alt+Shift+U"
},
"description": "__MSG_commandOpenSidebar__"
},

Comment on lines +193 to +199
"__opera__sidebar_action": {
"default_title": "Bitwarden",
"default_panel": "popup/index.html?uilocation=sidebar",
"default_icon": "images/icon19.png",
"open_at_install": false,
"browser_style": false
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy from MV2 manifest:

"__opera__sidebar_action": {
"default_title": "Bitwarden",
"default_panel": "popup/index.html?uilocation=sidebar",
"default_icon": "images/icon19.png",
"open_at_install": false,
"browser_style": false
},

@justindbaur justindbaur merged commit 5f2a773 into main Feb 11, 2025
45 checks passed
@justindbaur justindbaur deleted the ps/pm-17198/opera-mv3 branch February 11, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants